package cn.powerone.scm.service;

import java.util.List;

import cn.powerone.scm.domain.ScmCustomerOrderItemsWithOrderInfoVO;
import cn.powerone.scm.domain.ScmCustomerOrderItems;
import cn.powerone.scm.domain.ScmCustomerOrders;

/**
 * 客户订单明细Service接口
 * 
 * @author PowerOne
 * @date 2025-07-04
 */
public interface IScmCustomerOrderItemsService 
{
    /**
     * 查询客户订单明细
     * 
     * @param itemId 客户订单明细主键
     * @return 客户订单明细
     */
    public ScmCustomerOrderItems selectScmCustomerOrderItemsByItemId(Long itemId);

    /**
     * 查询客户订单明细列表
     * 
     * @param scmCustomerOrderItems 客户订单明细
     * @return 客户订单明细集合
     */
    public List<ScmCustomerOrderItems> selectScmCustomerOrderItemsList(ScmCustomerOrderItems scmCustomerOrderItems);

    /**
     * 新增客户订单明细
     * 
     * @param scmCustomerOrderItems 客户订单明细
     * @return 结果
     */
    public int insertScmCustomerOrderItems(ScmCustomerOrderItems scmCustomerOrderItems) throws Exception;

    /**
     * 修改客户订单明细
     * 
     * @param scmCustomerOrderItems 客户订单明细
     * @return 结果
     */
    public int updateScmCustomerOrderItems(ScmCustomerOrderItems scmCustomerOrderItems) throws Exception;

    /**
     * 批量删除客户订单明细
     * 
     * @param itemIds 需要删除的客户订单明细主键集合
     * @return 结果
     */
    public int deleteScmCustomerOrderItemsByItemIds(Long[] itemIds);

    /**
     * 删除客户订单明细信息
     * 
     * @param itemId 客户订单明细主键
     * @return 结果
     */
    public int deleteScmCustomerOrderItemsByItemId(Long itemId);

    /**
     * 拉取订单明细
     *
     * @param scmCustomerOrder 客户订单明细
     * @return 结果
     */
    public int pullScmCustomerOrderItems(ScmCustomerOrders scmCustomerOrder);

    /**
     * 选择订单明细
     *
     * @param scmCustomerOrder 客户订单明细
     * @return 订单明细
     */
    public int addScmCustomerOrderItemsFromQuotes(ScmCustomerOrders scmCustomerOrder, Long[] quotesIds);

    public int addScmCustomerOrderItemsFromOrderItems(ScmCustomerOrders scmCustomerOrder, Long[] ids);

    List<ScmCustomerOrderItemsWithOrderInfoVO> selectScmSupplierOrderItemsListWithOrderInfo(ScmCustomerOrderItemsWithOrderInfoVO scmSupplierOrderItems);
}
